import service from '@/utils/request'

// @Tags RingFootMaterial
// @Summary 创建圈料脚料配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.RingFootMaterial true "创建圈料脚料配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /ringFootMaterial/createRingFootMaterial [post]
export const createRingFootMaterial = (data) => {
  return service({
    url: '/ringFootMaterial/createRingFootMaterial',
    method: 'post',
    data
  })
}

// @Tags RingFootMaterial
// @Summary 删除圈料脚料配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.RingFootMaterial true "删除圈料脚料配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /ringFootMaterial/deleteRingFootMaterial [delete]
export const deleteRingFootMaterial = (params) => {
  return service({
    url: '/ringFootMaterial/deleteRingFootMaterial',
    method: 'delete',
    params
  })
}

// @Tags RingFootMaterial
// @Summary 批量删除圈料脚料配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除圈料脚料配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /ringFootMaterial/deleteRingFootMaterial [delete]
export const deleteRingFootMaterialByIds = (params) => {
  return service({
    url: '/ringFootMaterial/deleteRingFootMaterialByIds',
    method: 'delete',
    params
  })
}

// @Tags RingFootMaterial
// @Summary 更新圈料脚料配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.RingFootMaterial true "更新圈料脚料配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /ringFootMaterial/updateRingFootMaterial [put]
export const updateRingFootMaterial = (data) => {
  return service({
    url: '/ringFootMaterial/updateRingFootMaterial',
    method: 'put',
    data
  })
}

// @Tags RingFootMaterial
// @Summary 用id查询圈料脚料配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.RingFootMaterial true "用id查询圈料脚料配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /ringFootMaterial/findRingFootMaterial [get]
export const findRingFootMaterial = (params) => {
  return service({
    url: '/ringFootMaterial/findRingFootMaterial',
    method: 'get',
    params
  })
}

// @Tags RingFootMaterial
// @Summary 分页获取圈料脚料配置列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取圈料脚料配置列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /ringFootMaterial/getRingFootMaterialList [get]
export const getRingFootMaterialList = (params) => {
  return service({
    url: '/ringFootMaterial/getRingFootMaterialList',
    method: 'get',
    params
  })
}
